<template>
  <div class="home-recommend">
    <div class="recommend-item" v-for="(item,index) in recommend" :key="index">
      <a :href="item.link">
        <img :src="item.image" alt="">
        <div>{{ item.title }}</div>
      </a>
    </div>
  </div>
</template>

<script>
export default {
  name: "HomeRecommend",
  props: {
    recommend: {
      type: Array,
      default() {
        return [];
      }
    }
  }
}
</script>

<style scoped>
.home-recommend {
  display: flex;
  margin-top: 10px;
  padding-bottom: 25px;
  border-bottom: 8px solid #eee;
}

.home-recommend .recommend-item {
  flex: 1;
  text-align: center;
}

.home-recommend .recommend-item img {
  width: 70px;
  height: 70px;
}

</style>